#ifndef CCID_CMD_H
#define CCID_CMD_H

#define CCID_HEAD_LEN   10

typedef struct _ccid_cmd
{
    unsigned char header[10];
    int datalen;
    unsigned char *data;
    _ccid_cmd(unsigned char *_data);
    ~_ccid_cmd();

    void setMessage(unsigned char message);
    void setSqId(unsigned char sqId);
    unsigned char getSqId();
    unsigned char getStatus();
    void setData(unsigned char *pData, int cbData);
    unsigned char *getData();
    int getDataLen();
    void packet(unsigned char *pBuffer);
    int unPacket(unsigned char *pBuffer, int cbBuffer);
    int calcPacketLen(unsigned char *pBuffer, int cbBuffer);
} TCCID_CMD, *PCCID_CMD;






#endif
